import api from '@/common/request.js'

let commonApi = {}

// httpRequest,  不带token
// httpTokenRequest  带token

commonApi.sendCode = (params) => api.httpRequest(`/sendCode`, 'post', params) // 发送验证码

commonApi.login = (params) => api.httpRequest(`/login`, 'post', params) // 登录

commonApi.platform = (params) => api.httpRequest(`/user/platform`, 'get', params) //平台内容（隐私政策、用户协议）


export default commonApi
